#include "gamecontrollermtg.h"
#include <QDebug>

GameControllerMTG::GameControllerMTG(CardScene *scene) :
    QObject(0)
{
    m_Scene = scene;
}

void GameControllerMTG::addPool(CardPool *pool)
{
    m_Players.push_back(new MTGPLayer(pool));
    CardPoolViewObject *viewObject = new CardPoolViewObject(pool);
    m_ViewObjects.push_back(viewObject);
}

void GameControllerMTG::updateScene()
{
    foreach (ICardViewObjectData *item, m_ViewObjects)
    {
        if (m_Scene->items().indexOf((QGraphicsItem *)item) > -1)
        {

        }
        else
        {

        }
    }

}

void GameControllerMTG::run()
{
    init();

}

MTGPLayer * GameControllerMTG::CurrentPlayer()
{
    return m_Players.at(m_CurrentPlayer);
}

void GameControllerMTG::init()
{

}
